package jsqlite;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/* loaded from: classes2.dex */
public class Blob {
    private long handle = 0;
    protected int size = 0;

    private static native void internal_init();

    public native void close();

    protected native void finalize();

    /* JADX INFO: Access modifiers changed from: package-private */
    public native int read(byte[] bArr, int i, int i2, int i3) throws IOException;

    /* JADX INFO: Access modifiers changed from: package-private */
    public native int write(byte[] bArr, int i, int i2, int i3) throws IOException;

    public InputStream getInputStream() {
        return new BlobR(this);
    }

    public OutputStream getOutputStream() {
        return new BlobW(this);
    }

    static {
        internal_init();
    }
}
